package com.hzh302.spring.hello;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MessagePrinter {

	@Autowired
	private MessageService messageService;

	public void pringMessage() {
		System.out.println(messageService.getMessage());
	}
}
